//index.ts
import { Service } from './request'

//获取列表
export function getList(config: { page: string, limit: string }) {
  const params = new URLSearchParams()
  params.append('page', config.page)
  params.append('limit', config.limit)

  return Service({
    method: 'get',
    url: 'api/goodlist',
    params
  })
}